; (function (window, $) {
  $(function () {
    //tab切换
    /*
		var tabs =  $(".tabs li a"); 
		tabs.click(function() {
			var content = this.hash.replace('/','');
			tabs.removeClass("active");
			$(this).addClass("active");
			$("#content").find('.content-wrap').hide();
			$(content).fadeIn(200);
		});*/
    //.idInfo-wrap     .jobInfo-wrap   .ownInfo-wrap
    $('#ownInfo-btn').click(function () {
      $('.ownInfo-wrap').css('display', 'none')
      $('.jobInfo-wrap').css('display', 'none')
      $('.idInfo-wrap').css('display', 'block')
      $('.prof-step .step-2 i').css(
        'background',
        'url(.http://img0.rongsue.com/images/channel/logo.png) -57px -647px'
      )
      $('.prof-step .step-line2 i').css(
        'background',
        'url(.http://img0.rongsue.com/images/channel/logo.png) -57px -368px'
      )
    })
    $('#idInfo-btn').click(function () {
      $('.ownInfo-wrap').css('display', 'none')
      $('.idInfo-wrap').css('display', 'none')
      $('.jobInfo-wrap').css('display', 'block')
      $('.prof-step .step-3 i').css(
        'background',
        'url(.http://img0.rongsue.com/images/channel/logo.png) -57px -766px'
      )
    })

    //select2
    $('#shrq').select2({
      placeholder: '适合人群'
    })

    $('#kdqx').select2({
      placeholder: '可贷期限'
    })

    // $("#dbfs").select2({
    // 	placeholder:"担保方式"
    // });

    //uploadbtn
    $('.uploadbtn input').on('change', function () {
      $(this)
        .next('span')
        .text($(this).val())
      $(this)
        .prev('span')
        .text('+重新选择')
    })
  })
})(window, jQuery)
